//
//  ViewController.m
//  TPProgressHUDDemo
//
//  Created by 谭鹏 on 2017/7/20.
//  Copyright © 2017年 谭鹏. All rights reserved.
//

#import "ViewController.h"
#import "TPProgressHUD.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
   self.view.backgroundColor = [UIColor  grayColor];
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    TPProgressHUD * hud = [[TPProgressHUD alloc]initWithString:@"success" iconViewType:TPProgressHUD_iconViewType_sucess cancelBtnTitle:@"cancel" okBtnTitle:@"ok" otherBtnTitles:nil isVertical:NO];
    //TPProgressHUD * hud = [[TPProgressHUD alloc]initLoading];
    [hud presentWithAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
